package com.hundsun.cprs.yyt.service.system.domain;

import com.hundsun.cprs.yyt.common.base.DomainBase;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class TradeDay extends DomainBase {
    private Long id;

    private Integer year;

    private Integer month;

    private Date day;

    private String openTradeStatus="0";

    private String closeTradeStatus="0";

    private String memo;

    DateFormat df = new SimpleDateFormat("yyyy-MM-dd");

    public String getDayStr() {
        return df.format(this.day);
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public Integer getMonth() {
        return month;
    }

    public void setMonth(Integer month) {
        this.month = month;
    }

    public Date getDay() {
        return day;
    }

    public void setDay(Date day) {
        this.day = day;
    }

    public String getOpenTradeStatus() {
        return openTradeStatus;
    }

    public void setOpenTradeStatus(String openTradeStatus) {
        this.openTradeStatus = openTradeStatus == null ? null : openTradeStatus.trim();
    }

    public String getCloseTradeStatus() {
        return closeTradeStatus;
    }

    public void setCloseTradeStatus(String closeTradeStatus) {
        this.closeTradeStatus = closeTradeStatus == null ? null : closeTradeStatus.trim();
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }
}